package com.prs.crm.domain.assets;

import java.util.Date;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * 
 * @author Administrator
 * 2012-6-15 10:16:40 资产当前流向
 */
@Entity
@Table(name="ass_assetsliuxiang")
public class AssetsLiuXiang extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	private Integer id;
	private String num;
	private String name;
	private String state;
	private String type;              
	private String luser;           
	private String ldep;  
	private Date date;
	@ManyToOne
	private Person person;
	@OneToMany(cascade={CascadeType.ALL})
	private Set<AssetsRegister> assetsRegisters;
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getLuser() {
		return luser;
	}
	public void setLuser(String luser) {
		this.luser = luser;
	}
	public String getLdep() {
		return ldep;
	}
	public void setLdep(String ldep) {
		this.ldep = ldep;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	public Set<AssetsRegister> getAssetsRegisters() {
		return assetsRegisters;
	}
	public void setAssetsRegisters(Set<AssetsRegister> assetsRegisters) {
		this.assetsRegisters = assetsRegisters;
	} 
}
